package com.qf.model.pojo;

import java.sql.Date;

public class MyPro {
    private Integer id;     //我的理财产品编号
    private Integer p_id;     //产品编号
    private Integer u_id;     //用户编号
    private Integer share;     //购买产品份额
    private Date date;          //购买时间
    private Double capital;     //本金
    private Double money;       //余额
    private String p_name;       //产品名称
    private Double p_rate;       //收益利率
    private Integer P_deadline;       //期限      默认：30天
    private Double p_price;       //单价

    public MyPro() {
    }

    @Override
    public String toString() {
        return "MyPro{" +
                "id=" + id +
                ", p_id=" + p_id +
                ", u_id=" + u_id +
                ", share=" + share +
                ", date=" + date +
                ", capital=" + capital +
                ", money=" + money +
                ", p_name='" + p_name + '\'' +
                ", p_rate=" + p_rate +
                ", P_deadline=" + P_deadline +
                ", p_price=" + p_price +
                '}';
    }

    public MyPro(Integer id, Integer p_id, Integer u_id, Integer share, Date date, Double capital, Double money, String p_name, Double p_rate, Integer p_deadline, Double p_price) {
        this.id = id;
        this.p_id = p_id;
        this.u_id = u_id;
        this.share = share;
        this.date = date;
        this.capital = capital;
        this.money = money;
        this.p_name = p_name;
        this.p_rate = p_rate;
        P_deadline = p_deadline;
        this.p_price = p_price;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getP_id() {
        return p_id;
    }

    public void setP_id(Integer p_id) {
        this.p_id = p_id;
    }

    public Integer getU_id() {
        return u_id;
    }

    public void setU_id(Integer u_id) {
        this.u_id = u_id;
    }

    public Integer getShare() {
        return share;
    }

    public void setShare(Integer share) {
        this.share = share;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Double getCapital() {
        return capital;
    }

    public void setCapital(Double capital) {
        this.capital = capital;
    }

    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }

    public String getP_name() {
        return p_name;
    }

    public void setP_name(String p_name) {
        this.p_name = p_name;
    }

    public Double getP_rate() {
        return p_rate;
    }

    public void setP_rate(Double p_rate) {
        this.p_rate = p_rate;
    }

    public Integer getP_deadline() {
        return P_deadline;
    }

    public void setP_deadline(Integer p_deadline) {
        P_deadline = p_deadline;
    }

    public Double getP_price() {
        return p_price;
    }

    public void setP_price(Double p_price) {
        this.p_price = p_price;
    }
}
